
package anveshitha.analyzers;

import java.io.Reader;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.CharTokenizer;
import org.apache.lucene.analysis.TokenStream;

/**
 * @author varun
 *
 */
public class KeywordAnalyzer extends Analyzer {

	public TokenStream tokenStream(String fieldName, Reader reader) {
		return new CharTokenizer(reader){
			protected boolean isTokenChar(char c) {
			return true;
		}
	};
}

}